<?php
class ShortcutPanel extends PageElement
{
	public function getHTML()
	{
		
		$RecentlyAddedButton = new Div();
		$RecentlyAddedButton->setName("RecentlyAddedButton");
		$RecentlyAddedButton->setText("Recent additions");
		$RecentlyAddedButton->setCSSClass("ShortcutButtons");
		$RecentlyAddedButton->setOnClick("ShowRecentlyAdded();");
		$RecentlyAddedButton->setOnMouseOver("OnMouseOverShortcutButtons(this);");
		$RecentlyAddedButton->setOnMouseOut("OnMouseOutShortcutButtons(this);");
		
		$MostViewedButton = new Div();
		$MostViewedButton->setName("MostViewedButton");
		$MostViewedButton->setText("Most viewed");
		$MostViewedButton->setCSSClass("ShortcutButtons");
		$MostViewedButton->setOnClick("ShowMostViewed();");
		$MostViewedButton->setOnMouseOver("OnMouseOverShortcutButtons(this);");
		$MostViewedButton->setOnMouseOut("OnMouseOutShortcutButtons(this);");
		
		$container = new Div();
		$container->setName("ShortcutButtonsGroup");
		$container->setText($RecentlyAddedButton->getHTML().$MostViewedButton->getHTML());
		
		$label = new Div();
		$label->setName("ShortcutLabel");
		$label->setText("Quick links:");
		
		$endPara = new Paragraph();
		
		
		return $label->getHTML().$container->getHTML().$endPara->getHTML();
	}
}